package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.OrderAuditApplyDO;
import com.mhc.suzuki.dal.query.OrderAuditApplyQuery;

import java.util.List;


/**
 * Manager for OrderAuditApply.
 */
public interface OrderAuditApplyManager {
    /**
     * query count by query condition.
     */
    int countByQuery(OrderAuditApplyQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(OrderAuditApplyQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(OrderAuditApplyDO record);

    /**
     * insert selective.
     */
    long insertSelective(OrderAuditApplyDO record);

    /**
     * select by query condition.
     */
    List<OrderAuditApplyDO> selectByQuery(OrderAuditApplyQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<OrderAuditApplyDO> selectByQueryWithPage(OrderAuditApplyQuery query);

    /**
     * select by primary key.
     */
    OrderAuditApplyDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( OrderAuditApplyDO record,  OrderAuditApplyQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(OrderAuditApplyDO record, OrderAuditApplyQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(OrderAuditApplyDO record);
}